home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-11-13 | 1.1 KB | 21 lines | [TEXT/MPS ] |
-
- DoWZoom.p is a Pascal routine which will perform the window zoom in and zoom
- out functions. It gives attractive results with most WDEFs because it uses the
- window's structure region rather than just its portRect.
-
- Call DoWZoom in response to TrackBox returning true. Put the part code
- returned by TrackBox in the zoomDir parameter.
-
- The best feature of DoWZoom is that it follows the Human Interface Guidelines
- in multiple-monitor system configurations, zooming properly onto the screen
- originally containing the greatest portion of the window. Now I know some of
- you think it should zoom onto the window containing the zoom box, but this is
- the method blessed by our human interface staff, so that's what I'm showing.
-
- See also Human Interface Note #7. This routine is currently out of context and
- there is no "most useful" size for the window, so I simply use the entire
- screen. In practice, the window should be expanded only to the maximum useful
- size. A great example is the Finder in System Software Version 7.0. Its windows
- expand only to the point where the entire contents are visible (or until it
- runs out of real estate).
-